<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>KK4 - 极简导航</title>
    <link rel="stylesheet" href="styles.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <!-- 顶部搜索框 -->
        <div class="search-section">
            <div class="search-box">
                <i class="fas fa-search search-icon"></i>
                <input type="text" id="searchInput" placeholder="搜索网站..." autocomplete="off">
            </div>
        </div>

        <!-- 快捷图标网格 -->
        <div class="shortcuts-grid" id="shortcutsGrid">
            <!-- 动态生成的图标将插入这里 -->
        </div>

        <!-- 添加按钮 -->
        <button class="add-btn" id="addBtn" title="添加快捷方式">
            <i class="fas fa-plus"></i>
        </button>

        <!-- 添加/编辑模态框 -->
        <div class="modal" id="addModal">
            <div class="modal-content">
                <span class="close" id="closeModal">&times;</span>
                <h2 id="modalTitle">添加快捷方式</h2>
                <form id="shortcutForm">
                    <div class="form-group">
                        <label for="nameInput">名称</label>
                        <input type="text" id="nameInput" placeholder="网站名称" required>
                    </div>
                    <div class="form-group">
                        <label for="urlInput">网址</label>
                        <input type="url" id="urlInput" placeholder="https://example.com" required>
                    </div>
                    <div class="form-group">
                        <label for="iconInput">图标URL (可选)</label>
                        <input type="url" id="iconInput" placeholder="https://example.com/favicon.ico">
                    </div>
                    <div class="form-actions">
                        <button type="submit" class="btn-primary">保存</button>
                        <button type="button" class="btn-secondary" id="cancelBtn">取消</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
